import request from '@/utils/request'

// 创建商品与投入品中间
export function createInputReview(data) {
  return request({
    url: '/agro/input-review/create',
    method: 'post',
    data: data
  })
}

// 更新商品与投入品中间
export function updateInputReview(data) {
  return request({
    url: '/agro/input-review/update',
    method: 'put',
    data: data
  })
}

// 删除商品与投入品中间
export function deleteInputReview(id) {
  return request({
    url: '/agro/input-review/delete?id=' + id,
    method: 'delete'
  })
}

// 获得商品与投入品中间
export function getInputReview(id) {
  return request({
    url: '/agro/input-review/get?id=' + id,
    method: 'get'
  })
}

// 获得商品与投入品中间分页
export function getInputReviewPage(query) {
  return request({
    url: '/agro/input-review/page',
    method: 'get',
    params: query
  })
}

// 导出商品与投入品中间 Excel
export function exportInputReviewExcel(query) {
  return request({
    url: '/agro/input-review/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
